import {
	localeProps
} from '@form-create/designer/src/utils';

const label = '文字';
const name = 'text';

export default {
	menu: 'shop',
	icon: 'icon-span',
	label,
	name,
	input: false,
	rule() {
		return {
			type: 'elText',
			style: {

			},
			native: false,
			children: ["文字"]
		};
	},
	watch: {
		content({
			value,
			rule
		}) {
			rule.children = [value];
		}
	},
	props() {
		return [{
			type: 'el-input',
			field: 'content',
			title: '内容',
			value: '文字',
			props: {
				type: 'textarea',
				autosize: {
					minRows: 5,
					maxRows: 15
				}
			}
		}];
	}
};
